﻿using Layans.Data;
using LForum.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Api.Models
{
    public class UserPostViewModel
    {

        public int Id { get; set; }
        [Required]
        [StringLength(5000, MinimumLength = 2, ErrorMessage = "полето трябва е минимум 2 и максимум 5000 символа")]
        public string Posts { get; set; }

        public string UserName { get; set; }

        public DateTime DateTime { get; set; }

        public string Avatar { get; set; }
    }
}